﻿<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport"
		  content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>随机点名系统</title>
	<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="container">
		<button class="sound-control" id="soundToggle" title="切换声音">🔊</button>
		
		<div class="header">
			<h1>🎲 随机点名系统</h1>
		</div>
		
		<div class="stats">
			<div class="stat-item">
				<div class="stat-value" id="totalCount">0</div>
				<div class="stat-label">总人数</div>
			</div>
			<div class="stat-item">
				<div class="stat-value" id="remainingCount">0</div>
				<div class="stat-label">剩余人数</div>
			</div>
			<div class="stat-item">
				<div class="stat-value" id="selectedCount">0</div>
				<div class="stat-label">已点人数</div>
			</div>
		</div>
		
		<div class="file-controls">
			<input type="file" id="fileInput" accept=".json,.txt,.csv" />
			<button class="btn btn-small" onclick="document.getElementById('fileInput').click()">📁 导入名单</button>
			<button class="btn btn-small" id="exportBtn">💾 导出名单</button>
		</div>
		
		<div class="box" id="nameContainer">
			<!-- 学生名单将在这里动态生成 -->
		</div>
		
		<div class="controls">
			<button class="btn btn-primary" id="startBtn">开始点名</button>
			<button class="btn btn-danger" id="resetBtn">重置名单</button>
		</div>
	</div>
<script src="js/script.js"></script>
</body>
</html>
